import http from "@/utils/http";
const prefixUrl = {
  query: "analysis/realPerson/index",
  queryDataById: "/analysis/realPerson/detail",
  queryPopularDataById: "/analysis/certification/detail",
  updatePass: "/analysis/realPerson/pass",
  updateReject: "/analysis/realPerson/reject",
};
export default {
  role: {
    query: "POST:" + prefixUrl.query,
    queryDataById: "POST:" + prefixUrl.queryDataById,
    queryPopularDataById: "POST:" + prefixUrl.queryPopularDataById,
    updatePass: "POST:" + prefixUrl.updatePass,
    updateReject: "POST:" + prefixUrl.updateReject,
  },
  query(params = {}) {
    return http.post(prefixUrl.query, params);
  },
  queryPopularDataById(params = {}) {
    return http.post(prefixUrl.queryPopularDataById, params);
  },
  queryDataById(params = {}) {
    return http.post(prefixUrl.queryDataById, params);
  },
  updatePass(params = {}) {
    return http.post(prefixUrl.updatePass, params);
  },
  updateReject(params = {}) {
    return http.post(prefixUrl.updateReject, params);
  },
};
